import request from '@/utils/request'

// 查询投资组合数据
export function investmentPortfolioInfo(query) {
  return request({
    url: '/investment/portfolio/getInfo',
    method: 'get',
    params: query
  })
}

// 获取左侧字典
export function investmentPortfolioLeftSideDicts(query) {
  return request({
    url: '/investment/portfolio/getSideDicts',
    method: 'get',
    params: query
  })
}

// 查询项目列表
export function findDealList(query) {
  return request({
    url: '/investment/portfolio/getDealList',
    method: 'get',
    params: query
  })
}

// 获取图表
export function getChart(type, dealType) {
  return request({
    url: '/investment/portfolio/getChart/' + type + '/' + dealType,
    method: 'get'
  })
}

// 获取图表
export function getChartList(type, dealType) {
  return request({
    url: '/investment/portfolio/getChartList/' + type + '/' + dealType,
    method: 'get'
  })
}

